Deterministic scheduling algorithm for wireless communication

ABSTRACT

A system and method to implement a scheduling algorithm in a communication network using time division multiple access (TDMA) are described. The system includes a plurality of devices, each device transmitting a packet of data in the communication network, and a memory device to store the scheduling algorithm. The system also includes a processor to execute the scheduling algorithm to form a deterministic packet scheduling scheme, the deterministic packet scheduling scheme being based on a base unit representing a minimum among maximum packet intervals corresponding to the plurality of devices in the communication network.

BACKGROUND OF THE INVENTION

Exemplary embodiments pertain to the art of wireless communication.

Many systems include components or devices that must communicate with each other or a central controller, and, in many cases, that communication is wireless. Typically, contention-based protocols such as IEEE 802.15.11 and 802.15.4 are used to organize and prioritize the communication among the devices. These protocols provide random or non-deterministic access to radio frequency (RF) channels. As a result, a real-time stream of data may not be guaranteed. Other protocols (including IEEE 802.15.4) have contention-free mechanisms such as guaranteed time slot (GTS). GTS requires knowledge of the bandwidth requirement and limits the number of devices that may use GTS.

BRIEF DESCRIPTION OF THE INVENTION

Disclosed is a system to implement a scheduling algorithm in a communication network using time division multiple access (TDMA) including a plurality of devices, each device transmitting a packet of data in the communication network; a memory device configured to store the scheduling algorithm; and a processor configured to execute the scheduling algorithm to form a deterministic packet scheduling scheme, the deterministic packet scheduling scheme being based on a base unit representing a minimum among maximum packet intervals corresponding to the plurality of devices in the communication network.

Also disclosed is a computer-implemented method of executing a deterministic scheduling algorithm in a communication network using time division multiple access (TDMA) including determining a maximum packet interval (MPI) for each device among a plurality of devices of the communication network; determining a base unit (BU) as a minimum MPI among the MPIs of the plurality of devices; and executing, using a processor, the deterministic scheduling algorithm based on the BU.

BRIEF DESCRIPTION OF THE DRAWINGS

The following descriptions should not be considered limiting in any way. With reference to the accompanying drawings, like elements are numbered alike:

FIG. 1 is a block diagram of an exemplary system implementing wireless communication according to embodiments of the invention;

FIG. 2 is a process flow of a method of developing a packets round (PR) according to embodiments of the invention;

FIG. 3 is a process flow of a method of constructing a PR according to an embodiment of the invention;

FIG. 4 illustrates an exemplary BU and P_(k) according to embodiments of the invention;

FIG. 5 illustrates the development of an exemplary PR according to an embodiment of the invention; and

FIG. 6 shows another exemplary PR according to embodiments of the invention.

DETAILED DESCRIPTION OF THE INVENTION

A detailed description of one or more embodiments of the disclosed apparatus and method are presented herein by way of exemplification and not limitation with reference to the Figures.

As noted above, devices within a system may implement wireless communication with each other or a central controller. Embodiments discussed herein specifically reference an avionic system for explanatory purposes, but the systems and methods discussed herein are not limited to any particular application. In the exemplary avionic system, wireless sensors and actuators may be among the devices that communicate wirelessly. Avionic systems must meet communication regulations and involve mission critical data that is not conducive to the contention-based protocols typically used in wireless communication systems. In avionic communication, each of the various devices must communicate with a central controller in a designated timeslot. Embodiments of the systems and methods described herein relate to a deterministic packet scheduling scheme for time division multiple access (TDMA) communication by devices in an exemplary aviation system.

FIG. 1 is a block diagram of an exemplary system 100 implementing wireless communication according to embodiments of the invention. The exemplary system 100 is an avionic system on an airplane 101 and includes any number of devices 110-1 through 110-n (referred to generally as 110). The system 100 also includes a central controller 111 to which communication from each of the devices 110 is sent according to the communication scheme discussed below. The devices 110 may include sensors, actuators, and other types of devices that send and/or receive data. One or more of the devices 110 may include an input interface 112, one or more processors 114, one or more memory devices 116, and an output interface 118. One of the devices 110 may be a controller that provides instructions regarding the communication scheme to the other devices 110. Alternatively, the controller that provides instructions regarding communication to all the devices 110 of the system 100 may not be part of the system 100 itself but may include the input interface 112, one or more processors 114, one or more memory devices 116, and an output interface 118. The memory device 116 may be a computer-readable memory device that causes the processor 114 to execute instructions stored in the memory device 116 when processed. The functions and processes performed by the controller to determine the communication scheme are detailed below.

FIG. 2 is a process flow of a method of developing a packets round (PR) 410 (FIG. 4) according to embodiments of the invention. Each device 110 has an associated peak data rate (R_(p)) and a maximum latency (T_(lag)). The R_(p) defines the maximum amount of packets (information in bytes) that can be moved in a unit of time, and T_(lag) describes the largest time gap allowed between two adjacent packets from the given device 110. Any communication scheme should meet these two requirements for each device 110. At block 210, computing the maximum packet interval (MPI), the maximum allowable distance between two adjacent packets from a given device 110, is as follows:

$\begin{matrix} {{MPI} = \left\lfloor {\arg \mspace{11mu} \min \left\{ {\frac{R_{pkt}}{R_{p}},\frac{T_{lag}}{T_{pkt}}} \right\}} \right\rfloor} & \left\lbrack {{EQ}.\mspace{14mu} 1} \right\rbrack \end{matrix}$

The floor function (indicated by └ ┘) rounds MPI to the closest integer (greater than one) toward negative infinity (the smallest integer value greater than one) and computes MPI for each device 110 based on the R_(p) and T_(lag) of the device 110. T_(pkt) is assumed to be a constant and represents the time required, with all overheads included, to transmit L_(payload) bytes, which is also assumed as a constant. R_(pkt) is given by:

$\begin{matrix} {R_{pkt} = \frac{R_{phy}*T_{payload}}{T_{pkt}}} & \left\lbrack {{EQ}.\mspace{14mu} 2} \right\rbrack \end{matrix}$

R_(phy) is the raw data rate in the physical layer and T_(payload) is the amount of time required to transmit L_(payload) bytes (without considering overheads). While MPI is dimensionless, it expresses a distance with reference to number of packets based on the implied discretization in a packetized network. The MPI of a given device 110 sets an upper limit for access sharing with other devices 110 in the same system 100 (network). The use of MPI imposes a tighter boundary on bandwidth requirements than the use of the R_(p) and T_(lag), because the implied data rate is higher than R_(p) or the implied latency is lower than T_(lag) or both.

At block 220, defining a base unit (BU) based on the MPI obtained for each device 110 using EQ. 1. BU is defined as the minimum MPI among the MPIs of the different devices 110:

$\begin{matrix} {{BU} = {\underset{m \in {1\mspace{11mu} \ldots \mspace{14mu} M}}{\arg \mspace{11mu} \min}\left\{ {MPI}_{m} \right\}}} & \left\lbrack {{EQ}.\mspace{14mu} 3} \right\rbrack \end{matrix}$

M is the number of devices 110 in the network of the system 100. The use of the BU ensures that the resulting PR 410 satisfies the most restrictive bandwidth requirement among the devices 110 of the system 100. This is because the minimum MPI represents the smallest among the maximum allowable distances between two adjacent packets. As such, the BU represents a quantitative measure of how many additional packets may be accommodated once the most demanding communication has been met. At block 230, calculating a packet interval based on BU, referred to as PIB, for each device 110 is as follows:

$\begin{matrix} {{PIB}_{m} = \left\lfloor {\log_{2}\frac{{MPI}_{m}}{BU}} \right\rfloor} & \left\lbrack {{EQ}.\mspace{14mu} 4} \right\rbrack \end{matrix}$

Every PIB is an integer number larger than one and satisfies PIB_(m)*BU≦MPI_(m). Every device 110 has a PIB associated with it, but two or more devices 110 may have the same PIB. By using the PIB, the length of a PR 410 can be increased easily. This is because the PR 410 may be doubled and duplicated (thereby doubling free or unoccupied packet spaces) without changing the packet arrangement within the PR 410. For example, if the current length for a packets round 410 is 2 BUs with 3 unoccupied packet spaces, then the number of unoccupied packet spaces can be doubled (to 6) by cloning the current PR 410 without changing the packet arrangement.

At block 240, grouping PIBs into K bins includes grouping PIBs by values into K bins such that:

$\begin{matrix} {K = {\arg \mspace{11mu} \underset{m \in {1\mspace{11mu} \ldots \mspace{11mu} M}}{\max \left\{ {PIB}_{m} \right\}}}} & \left\lbrack {{EQ}.\mspace{14mu} 5} \right\rbrack \end{matrix}$

The kth bin has P_(k) number of PIBs (number of devices 110 with same PIB) with identical values, also equal to the bin's index k, such that:

P _(k)=count(PIB_(m) ≡k)  [EQ. 6]

The symbol indicates “is the same as.” m is the set of devices 110 (mε1 . . . M) and k is the bins (kε1 . . . K) and

$\begin{matrix} {{\sum\limits_{k \in {1\; \ldots \mspace{14mu} K}}\; P_{k}} \equiv M} & \left\lbrack {{EQ}.\mspace{14mu} 7} \right\rbrack \end{matrix}$

As a PR 410 grows (e.g., by doubling) the PR 410 may be considered as including 2^(N) BUs, where N is a measure of the size of PRs 410. With all the above-noted values in place, the PR 410 may be constructed as discussed with reference to FIG. 3 below.

FIG. 3 is a process flow of a method of constructing a PR 410 (FIG. 4) according to an embodiment of the invention. At block 310, initializing includes setting n=0, number of used spaces (y)=0, and starting with an empty list for the PR 410. At block 320, the process includes putting packets of devices 110 in the n+1 bin into empty spaces in the PR 410 includes. For example, the first time through the loop, with n initialized to 0, packets of all of the devices 110 in the 1^(st) bin (0+1 bin) are put into the PR 410, which has all spaces empty at this point. At block 330, computing the number of used spaces y is given by:

y=y*2+P _(n+1)  [EQ. 8]

Thus, for example, when n=0 and y=0 in the first iteration, the number of used spaces y is P1 or the number of devices 110 in bin 1. At block 340, a check is performed as follows:

$\begin{matrix} {\left( {{2^{n + 1}*{BU}} - y} \right) \geq {\sum\limits_{k = {n + {1\; \ldots \mspace{11mu} K}}}\; P_{k}}} & \left\lbrack {{EQ}.\mspace{14mu} 9} \right\rbrack \end{matrix}$

The comparison in EQ. 9 is between the number of unoccupied spaces (total spaces minus the used spaces y on the left) and a summation of the number of devices 110 in the remaining bins (on the right). When the number of unoccupied spaces is less than the number of devices 110 in the remaining bins, then the process ends because there is insufficient bandwidth. When the number of unoccupied spaces is greater than or equal to the number of devices 110 in the remaining bins, then the process proceeds to block 350. At block 350, incrementing n by 1 and joining the PR 410 from the current loop with the existing PR 410 (which is null for the first iteration) is followed by returning the process to block 320. In the case of insufficient bandwidth, the initial PR 410 may be doubled, as discussed above, to double the number of unoccupied spaces and repeat the processes shown in FIG. 3 until a PR 410 accommodating packets from all the devices 110 is developed. In alternate embodiments, the final PR 410 additionally accommodates (sets aside a few packet spaces for) a new device 110 to sense the central controller 111 and join the communication scheme of the network of devices 110. The additional packets in the PR 410 are achieved according to two different embodiments. According to one embodiment, unoccupied spaces remaining after all of the devices 110 are accommodated may be used. According to another embodiment, a virtual device 110 may be used in the development of the PR 410 to increase the size of one of the bins (in Eq. 6) and ensure that space is available for a new device 110.

To address bandwidth requirements, the following inequality may be used to check whether a PR 410 may be deterministically arranged for a given set of P_(k) if P_(k)>0 for all P_(k) (every bin has at least one device 110):

$\begin{matrix} {{{2^{N}*{BU}} \geq {\sum\limits_{k = {1\mspace{11mu} \ldots \mspace{11mu} K}}\; \left( {2^{N + 1 - k}*P_{k}} \right)}}{or}} & \left\lbrack {{EQ}.\mspace{14mu} 10} \right\rbrack \\ {{BU} \geq {\sum\limits_{k = {1\mspace{11mu} \ldots \mspace{11mu} K}}\; \left( {2^{1 - k}*P_{k}} \right)}} & \left\lbrack {{EQ}.\mspace{14mu} 11} \right\rbrack \end{matrix}$

A more generalized form of establishing the bandwidth boundary may be written as:

$\begin{matrix} {{2^{N}*{BU}} \geq {\sum\limits_{k = {1\mspace{11mu} \ldots \mspace{14mu} K}}\; \left( {2^{T_{k}}*P_{k}} \right)}} & \left\lbrack {{EQ}.\mspace{14mu} 12} \right\rbrack \end{matrix}$

T_(k)=f(T_(k)−1) and T_(k)=N−(k−1) if P_(k)>0 for all k=1 . . . K. As a result, if block 320 is removed from the iterative process shown in FIG. 3, the feasibility or length of the PR 410 may be determined rather than or before determining the PR 410 itself.

FIGS. 4 and 5 are used to illustrate the development of an exemplary PR 410 as described above. FIG. 4 illustrates an exemplary BU and P_(k) according to embodiments of the invention. BU is 7 and k is 4 (e.g., there are 4 bins) according to the example. The illustration of BU can be thought of as illustrating the result of block 310 (the initialized PR 410). Also in the example, M (total number of devices 110) is 12, and the breakdown of the devices 110 into the four bins (according to PIB of each device 110) is as follows: there are three devices 110 (P₁₋₁, P₁₋₂, P₁₋₃) in the first bin; there are five devices 110 (P₂₋₁,P₂₋₂, P₂₋₃, P₂₋₄, P₂₋₅) in the second bin; there are no devices 110 in the third bin; and there are four devices 110 (P₄₋₁, P₄₋₂, P₄₋₃, P₄₋₄) in the fourth bin. The four bins and their respective devices are indicated in FIG. 4.

FIG. 5 illustrates the development of an exemplary PR 410 according to an embodiment of the invention. Three different stages, A, B, and C are illustrated for explanatory purposes, but fewer or more stages may be required to develop PR 410 in other cases with other devices 110. In the first stage A, the packets of devices 110 in the first bin (n+1=1) are put into the empty spaces of the initialized PR 410, as discussed with reference to block 320. According to EQ. 8, the number of used spaces y is three. At this stage, according to EQ. 9, 11>9 is true such that the process of developing the PR 410 may continue as described with reference to FIG. 3. By incrementing n by 1, stage B is reached, and the devices 110 in the second bin are placed in the PR 410 as shown in FIG. 5. Once again, EQ. 8 and EQ. 9 are used to determine the number of used spaces and to verify that enough unoccupied spaces are available to place packets from the remaining devices 110. Stage C is reached after the devices from the fourth and final bin are placed. As FIG. 5 illustrates, unused spaces also remain in the final PR 410 at stage C.

FIG. 6 shows another exemplary PR 410 according to embodiments of the invention. According to the example illustrated in FIG. 6, the different from the previous example is that the total number of devices M is eleven rather than twelve (there are three rather than four devices 110 (P₄₋₁, P₄₋₂, P₄₋₃) in the fourth bin). As a result, only two stages or iterations (length of two BU) are needed to accommodate all the devices 110 into the PR 410. In addition, according to the embodiment illustrated in FIG. 6, there are no unoccupied spaces remaining that may be used by a new device 110 to join the network of the system 100 and communicate with the central controller 111.

While the invention has been described with reference to an exemplary embodiment or embodiments, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted for elements thereof without departing from the scope of the invention. In addition, many modifications may be made to adapt a particular situation or material to the teachings of the invention without departing from the essential scope thereof. Therefore, it is intended that the invention not be limited to the particular embodiment disclosed as the best mode contemplated for carrying out this invention, but that the invention will include all embodiments falling within the scope of the claims. 

What is claimed is:
 1. A system to implement a scheduling algorithm in a communication network using time division multiple access (TDMA), the system comprising: a plurality of devices, each device transmitting a packet of data in the communication network; a memory device configured to store the scheduling algorithm; and a processor configured to execute the scheduling algorithm to form a deterministic packet scheduling scheme, the deterministic packet scheduling scheme being based on a base unit representing a minimum among maximum packet intervals corresponding to the plurality of devices in the communication network.
 2. The system according to claim 1, wherein the processor is further configured to determine a packet interval based on the base unit (PIB) for each of the plurality of devices.
 3. The system according to claim 2, wherein the processor determines the PIB for each of the plurality of devices, indicated by m, using a floor function as: ${PIB}_{m} = {\left\lfloor {\log_{2}\frac{{MPI}_{m}}{BU}} \right\rfloor.}$
 4. The system according to claim 2, wherein the processor groups devices among the plurality of devices that have a same PIB into a same bin among a plurality of bins.
 5. The system according to claim 4, wherein the processor executes the scheduling algorithm in iterations, with one iteration for each of the plurality of bins, based on scheduling the packets associated with the devices in one of the plurality of bins in each of the iterations.
 6. The system according to claim 1, wherein the processor is further configured to execute the scheduling algorithm iteratively, and verify bandwidth sufficiency at each iteration based on comparing a number of unused slots and a number of the plurality of devices remaining to be scheduled.
 7. The system according to claim 6, wherein the processor verifies the bandwidth sufficiency based on determining whether: ${\left( {{2^{n + 1}*{BU}} - y} \right) \geq {\sum\limits_{k = {n + {1\mspace{11mu} \ldots \mspace{14mu} K}}}\; P_{k}}},$ where y is a number of used slots, and P_(k) is a number of the plurality of devices in each of K bins.
 8. A computer-implemented method of executing a deterministic scheduling algorithm in a communication network using time division multiple access (TDMA), the method comprising: determining a maximum packet interval (MPI) for each device among a plurality of devices of the communication network; determining a base unit (BU) as a minimum MPI among the MPIs of the plurality of devices; and executing iteratively, using a processor, the deterministic scheduling algorithm based on the BU.
 9. The method according to claim 8, further comprising determining a packet interval based on the BU (PIB) for each of the plurality of devices.
 10. The method according to claim 9, wherein the determining the PIB for each of the plurality of devices, indicated by m, includes using a floor function as: ${PIB}_{m} = {\left\lfloor {\log_{2}\frac{{MPI}_{m}}{BU}} \right\rfloor.}$
 11. The method according to claim 9, further comprising sorting the plurality of devices into bins based on the respective PIB, wherein a device among the plurality of devices with a given PIB is sorted into a same bin as another device among the plurality of devices with the given PIB.
 12. The method according to claim 11, wherein the executing the deterministic scheduling algorithm includes scheduling packets associated with the plurality of devices in an order corresponding to the respective bins.
 13. The method according to claim 8, further comprising verifying bandwidth sufficiency at each iteration of the deterministic scheduling algorithm.
 14. The method according to claim 13, wherein the verifying includes comparing a number of unused slots and a number of the plurality of devices remaining to be scheduled.
 15. The method according to claim 14, wherein the verifying includes determining whether: $\left( {{2^{n + 1}*{BU}} - y} \right) \geq {\sum\limits_{k = {n + {1\mspace{11mu} \ldots \mspace{14mu} K}}}\; P_{k}}$ where y is a number of used slots, and P_(k) is a number of the plurality of devices in each of K bins. 